const CracoLessPlugin = require('craco-less');

module.exports = {
  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        cssLoaderOptions: {
          modules: {
            // 这里配置所有 less 文件都启用 CSS Modules
            auto: () => true,
            localIdentName: '[local]__[hash:base64:5]',
          },
        },
      },
    },
  ],
};